﻿/// <reference path="../../Scripts/jquery-1.4.1-vsdoc.js" />

function deleteUser(id){
	if(confirm("确定删除此用户？")){
		$.post(actionUrl("Authority", "AJAX_DeleteUser"), { "userId" : id }, function(res){
			alert(res.Message);
			if (res.Success) {
				window.location.reload();
			}
		});
	}
}

function permitUser(id) {
	if (confirm("确定通过此用户的注册申请？")) {
		$.post(actionUrl("Authority", "AJAX_PermitUser"), { "userId": id }, function (res) {
			alert(res.Message);
			if (res.Success) {
				window.location.reload();
			}
		});
	}
}